Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
turf-deviation
Advanced tools
turf deviation module
turf.deviation(polygons, points, inField, outField)
Calculates the standard deviation value of a field for points within a set of polygons.
parameter | type | description |
---|---|---|
polygons | FeatureCollection | a FeatureCollection of Polygon features |
points | FeatureCollection | a FeatureCollection of Point features |
inField | String | the field in points from which to aggregate |
outField | String | the field to append to polygons representing deviation |
var polygons = turf.featurecollection([
turf.polygon([[
[-97.807159, 30.270335],
[-97.807159, 30.369913],
[-97.612838, 30.369913],
[-97.612838, 30.270335],
[-97.807159, 30.270335]
]]),
turf.polygon([[
[-97.825698, 30.175405],
[-97.825698, 30.264404],
[-97.630691, 30.264404],
[-97.630691, 30.175405],
[-97.825698, 30.175405]
]])
]);
var points = turf.featurecollection([
turf.point([-97.709655, 30.311245],
{population: 500}),
turf.point([-97.766647, 30.345028],
{population: 400}),
turf.point([-97.765274, 30.294646],
{population: 600}),
turf.point([-97.753601, 30.216355],
{population: 500}),
turf.point([-97.667083, 30.208047],
{population: 200})
]);
var inField = 'population';
var outField = 'pop_deviation';
var deviated = turf.deviation(
polygons, points, inField, outField);
var result = turf.featurecollection(
points.features.concat(deviated.features));
//=result
Requires nodejs.
$ npm install turf-deviation
$ npm test
FAQs
turf deviation module
The npm package turf-deviation receives a total of 29 weekly downloads. As such, turf-deviation popularity was classified as not popular.
We found that turf-deviation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.